
package com.fx.apartment.modules.dynamic.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fx.apartment.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 朋友圈评论实体类
 *
 * @author QinXueFeng
 * @since 2021-04-19
 */
@Data
@TableName("ctn_comment")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Comment对象", description = "朋友圈评论")
public class Comment extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 动态id
	*/
		@ApiModelProperty(value = "动态id")
		@NotNull(message = "动态id不能为空")
		private Long dynamicId;
	/**
	* 内容
	*/
		@ApiModelProperty(value = "内容")
		@NotEmpty(message = "内容不能为空")
		private String content;
	/**
	* 回复人名称
	*/
		@ApiModelProperty(value = "回复人名称")
		private String replyUserName;
	/**
	* 回复id
	*/
		@ApiModelProperty(value = "回复id")
		private Long replyUserId;
	/**
	* 创建人名称
	*/
		@ApiModelProperty(value = "创建人名称")
		private String createUserName;
	/**
	* 发布人状态(0未读1已读)
	*/
		@ApiModelProperty(value = "发布人状态(0未读1已读)")
		private Integer releaseStatus;

}
